<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            border: 1px solid #000;
        }
        #mainDiv{
            margin: auto;
            width: 900px;
            height: 500px;
            display: flex;
        }
        .infoDiv{
            width: 420px;
            height: 450px;
            padding: 10px;
        }
        #shopDiv{
            background-color: rgba(255,0,0,0.5);
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            visibility: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        #contentDiv{
            border: 2px solid #000;
            background-color: white;
            width: 500px;
            height: 300px;
        }
    </style>
    <script src="book.js"></script>
    <script src="bookPress.js"></script>
</head>
<body>
    <div id="mainDiv">
        <div class="infoDiv" style="display: flex">
            <div style="width: 300px;height: 450px">
                书名：<span id="nameSpan"></span><br>
                作者：<span id="authSpan"></span><br>
                出版时间：<span id="dateSpan"></span><br>
                售价：<span id="priceSpan"></span><br>
            </div>
            <img src="" width="150" height="200" id="bookImg">
        </div>
        <div class="infoDiv">
            <table border="1" cellspacing="0" width="100%">
                <thead><tr><th></th><th>书名</th><th>作者</th><th>单价</th><th>单项总价</th><th>操作</th></tr></thead>

                <tbody id="bookData"></tbody>
            </table>
            图书名：<input type="text" id="nameTxt"><input type="button" value="搜索" onclick="findBook()">
        </div>

        <div id="shopDiv">
            <div id="contentDiv">
                <table border="1" width="100%" cellspacing="0">
                    <thead><tr><th>商品名</th><th>单价</th><th>数量</th><th>单项总价</th><th>移除商品</th></tr></thead>
                    <tbody id="shopData"></tbody>
                </table>
                购物车总价：<span id="totalPriceSpan"></span>
                <input type="button" value="继续购物" onclick="continueBuy()">
            </div>
        </div>
    </div>
</body>
</html>